Ext.define('Admin.view.orderapprove.HrAdministrativeAssistantAuditForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.hrAdministrativeAssistantAuditForm',
    requires: [
        'Ext.button.Button',
        'Ext.form.RadioGroup', 
        'Ext.form.field.*'
    ],
    //viewModel: {type: 'orderapprove'},
    controller: 'orderapprove',
    bodyPadding: 10,
    bodyBorder: true,
    defaults: {
        anchor: '100%'
    },
    fieldDefaults: {
        labelAlign: 'left',
        msgTarget: 'none',
        invalidCls: '' //unset the invalidCls so individual fields do not get styled as invalid
    },
    items: [
    {
        xtype: 'radiogroup',
        fieldLabel: '审批意见',
        defaults: {
			flex: 1
		},
        items: [{
			name: 'hrAdministrativeAssistantApproved',
			inputValue: true,
			boxLabel: '同意',
			checked: true
		}, {
			name: 'hrAdministrativeAssistantApproved',
			inputValue: false,
			boxLabel: '不同意'
		}]
    },{
        xtype     : 'textareafield',
        grow      : true,
        name      : 'backReason',
        fieldLabel: '驳回理由',
        anchor    : '100%'
    }],
   	bbar: [{
		xtype: 'button',
		ui: 'soft-blue',
		text: '提交'	,
		handler: 'onClickHrAdministrativeAssistantAuditFormSubmitButton'
	},{
		xtype: 'button',
		ui: 'gray',
		text: '取消',
		handler:function(btn){
			var win = btn.up('window');
	        if (win) {
	            win.close();
	        }
		}
	}]
});